<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>我的页面 - 社交平台</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      min-height: 100vh;
      margin: 0;
    }
    
    /* 顶部导航 */
    .top-nav {
      height: 50px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      padding: 0 15px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 auto;
    }
    
    .nav-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-decoration: none;
    }
    
    /* 样式切换器 */
    .style-switcher {
      background-color: #fff;
      padding: 12px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .style-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .style-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .style-tab {
      padding: 6px 14px;
      background-color: #f5f7fa;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      cursor: pointer;
    }
    
    .style-tab.active {
      background-color: #2196f3;
      color: white;
    }
    
    /* 通用我的页面样式 */
    .profile-page {
      display: none;
    }
    
    .profile-page.active {
      display: block;
    }
    
    /* 个人信息头部 */
    .profile-header {
      padding: 20px 15px;
      background-color: #fff;
      margin-bottom: 10px;
    }
    
    .header-cover {
      height: 120px;
      background-color: #e3f2fd;
      border-radius: 12px;
      margin-bottom: -50px;
      position: relative;
      z-index: 1;
    }
    
    .profile-info {
      display: flex;
      padding: 0 15px;
      position: relative;
      z-index: 2;
    }
    
    .profile-avatar {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 4px solid white;
      object-fit: cover;
      background-color: #eee;
    }
    
    .profile-basic {
      flex: 1;
      padding-left: 15px;
      padding-top: 20px;
    }
    
    .profile-name {
      font-size: 20px;
      font-weight: 600;
      margin: 0 0 5px 0;
    }
    
    .profile-desc {
      font-size: 14px;
      color: #666;
      margin: 0 0 10px 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    .profile-stats {
      display: flex;
      gap: 20px;
      margin-bottom: 10px;
    }
    
    .stat-item {
      text-align: center;
    }
    
    .stat-value {
      font-size: 17px;
      font-weight: 600;
      margin: 0 0 3px 0;
    }
    
    .stat-label {
      font-size: 12px;
      color: #666;
      margin: 0;
    }
    
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 16px;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .btn-primary {
      background-color: #2196f3;
      color: white;
    }
    
    .btn-primary:hover {
      background-color: #1976d2;
    }
    
    .btn-secondary {
      background-color: #f5f7fa;
      color: #333;
    }
    
    .btn-secondary:hover {
      background-color: #e9ecef;
    }
    
    /* 功能菜单 */
    .function-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
      padding: 15px;
      background-color: #fff;
      border-radius: 12px;
      margin-bottom: 10px;
    }
    
    .function-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-decoration: none;
      color: #333;
    }
    
    .function-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background-color: #e3f2fd;
      color: #2196f3;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      margin-bottom: 8px;
    }
    
    .function-name {
      font-size: 13px;
      font-weight: 500;
    }
    
    /* 列表项样式 */
    .profile-list {
      background-color: #fff;
      border-radius: 12px;
      margin-bottom: 10px;
      overflow: hidden;
    }
    
    .list-item {
      display: flex;
      align-items: center;
      padding: 15px;
      border-bottom: 1px solid #f5f7fa;
      text-decoration: none;
      color: #333;
    }
    
    .list-item:last-child {
      border-bottom: none;
    }
    
    .list-icon {
      width: 24px;
      height: 24px;
      color: #2196f3;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      margin-right: 15px;
    }
    
    .list-text {
      flex: 1;
      font-size: 16px;
    }
    
    .list-arrow {
      color: #ccc;
      font-size: 18px;
    }
    
    .list-badge {
      background-color: #f44336;
      color: white;
      border-radius: 10px;
      padding: 2px 8px;
      font-size: 12px;
      margin-left: 10px;
    }
    
    /* 样式1 - 标准布局 */
    .standard-layout .profile-actions {
      display: flex;
      gap: 10px;
    }
    
    .standard-layout .content-section {
      padding: 0 15px;
    }
    
    /* 样式2 - 简约布局 */
    .simple-layout .profile-header {
      padding: 15px;
      background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
      color: white;
    }
    
    .simple-layout .header-cover {
      display: none;
    }
    
    .simple-layout .profile-info {
      padding: 0;
    }
    
    .simple-layout .profile-desc {
      color: rgba(255, 255, 255, 0.8);
    }
    
    .simple-layout .stat-value,
    .simple-layout .stat-label {
      color: white;
    }
    
    .simple-layout .function-icon {
      background-color: rgba(33, 150, 243, 0.1);
    }
    
    /* 样式3 - 卡片布局 */
    .card-layout {
      padding: 15px;
    }
    
    .card-layout .profile-card {
      background-color: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      margin-bottom: 15px;
    }
    
    .card-layout .profile-header {
      margin-bottom: 0;
      border-radius: 16px 16px 0 0;
    }
    
    .card-layout .function-grid {
      border-radius: 0;
      margin-bottom: 0;
    }
    
    .card-layout .profile-list {
      border-radius: 0 0 16px 16px;
      margin-bottom: 15px;
    }
    
    /* 样式4 - 标签式布局 */
    .tab-layout {
      background-color: #fff;
    }
    
    .tab-layout .profile-tabs {
      display: flex;
      border-bottom: 1px solid #eee;
    }
    
    .tab-layout .profile-tab {
      flex: 1;
      padding: 12px;
      text-align: center;
      font-size: 15px;
      font-weight: 500;
      color: #666;
      cursor: pointer;
    }
    
    .tab-layout .profile-tab.active {
      color: #2196f3;
      border-bottom: 2px solid #2196f3;
    }
    
    .tab-content {
      display: none;
    }
    
    .tab-content.active {
      display: block;
    }
    
    .tab-layout .profile-header {
      margin-bottom: 0;
      border-radius: 0;
    }
    
    /* 动态内容 */
    .posts-section {
      padding: 15px;
    }
    
    .section-title {
      font-size: 17px;
      font-weight: 600;
      margin: 0 0 15px 0;
    }
    
    .post-item {
      background-color: #fff;
      border-radius: 12px;
      padding: 15px;
      margin-bottom: 15px;
    }
    
    .post-content {
      font-size: 15px;
      margin-bottom: 10px;
    }
    
    .post-image {
      width: 100%;
      border-radius: 8px;
      margin-bottom: 10px;
    }
    
    .post-actions {
      display: flex;
      justify-content: space-between;
      color: #666;
      font-size: 14px;
    }
    
    .post-action {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 1000;
      display: none;
    }
    
    /* 动画 */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
  </style>
</head>
<body>
  <!-- 提示框 -->
  <div class="toast" id="toast"></div>
  
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <a href="#" class="nav-btn" id="backBtn">
      <i class="fa fa-angle-left"></i>
    </a>
    <h1 class="nav-title">我的页面</h1>
    <a href="#" class="nav-btn" id="settingsBtn">
      <i class="fa fa-cog"></i>
    </a>
  </nav>
  
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <div class="style-tabs">
      <div class="style-tab active" data-style="standard">标准布局</div>
      <div class="style-tab" data-style="simple">简约布局</div>
      <div class="style-tab" data-style="card">卡片布局</div>
      <div class="style-tab" data-style="tab">标签式布局</div>
    </div>
  </div>
  
  <!-- 样式1 - 标准布局 -->
  <div class="profile-page active" id="standard">
    <div class="standard-layout">
      <div class="profile-header">
        <div class="header-cover"></div>
      </div>
      
      <div class="profile-info">
        <img src="https://picsum.photos/seed/user123/200/200" alt="个人头像" class="profile-avatar">
        <div class="profile-basic">
          <h2 class="profile-name">陈小明</h2>
          <p class="profile-desc">热爱生活的摄影师，分享美好瞬间 | 旅行爱好者</p>
          <div class="profile-stats">
            <div class="stat-item">
              <p class="stat-value">248</p>
              <p class="stat-label">动态</p>
            </div>
            <div class="stat-item">
              <p class="stat-value">1.2k</p>
              <p class="stat-label">粉丝</p>
            </div>
            <div class="stat-item">
              <p class="stat-value">356</p>
              <p class="stat-label">关注</p>
            </div>
          </div>
          <div class="profile-actions">
            <button class="btn btn-primary">
              <i class="fa fa-edit mr-1"></i> 编辑资料
            </button>
            <button class="btn btn-secondary">
              <i class="fa fa-cog mr-1"></i> 设置
            </button>
          </div>
        </div>
      </div>
      
      <div class="content-section">
        <div class="function-grid">
          <a href="#" class="function-item" onclick="showToast('我的动态')">
            <div class="function-icon">
              <i class="fa fa-newspaper-o"></i>
            </div>
            <span class="function-name">我的动态</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('我的收藏')">
            <div class="function-icon">
              <i class="fa fa-star-o"></i>
            </div>
            <span class="function-name">我的收藏</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('我的相册')">
            <div class="function-icon">
              <i class="fa fa-photo"></i>
            </div>
            <span class="function-name">我的相册</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('我的钱包')">
            <div class="function-icon">
              <i class="fa fa-money"></i>
            </div>
            <span class="function-name">我的钱包</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('消息通知')">
            <div class="function-icon">
              <i class="fa fa-bell-o"></i>
            </div>
            <span class="function-name">消息通知</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('地址管理')">
            <div class="function-icon">
              <i class="fa fa-map-marker"></i>
            </div>
            <span class="function-name">地址管理</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('我的礼物')">
            <div class="function-icon">
              <i class="fa fa-gift"></i>
            </div>
            <span class="function-name">我的礼物</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('更多功能')">
            <div class="function-icon">
              <i class="fa fa-ellipsis-h"></i>
            </div>
            <span class="function-name">更多</span>
          </a>
        </div>
        
        <div class="profile-list">
          <a href="#" class="list-item" onclick="showToast('账户安全')">
            <div class="list-icon">
              <i class="fa fa-shield"></i>
            </div>
            <div class="list-text">账户安全</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('隐私设置')">
            <div class="list-icon">
              <i class="fa fa-lock"></i>
            </div>
            <div class="list-text">隐私设置</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('帮助中心')">
            <div class="list-icon">
              <i class="fa fa-question-circle"></i>
            </div>
            <div class="list-text">帮助中心</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('关于我们')">
            <div class="list-icon">
              <i class="fa fa-info-circle"></i>
            </div>
            <div class="list-text">关于我们</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 样式2 - 简约布局 -->
  <div class="profile-page" id="simple">
    <div class="simple-layout">
      <div class="profile-header">
        <div class="header-cover"></div>
        <div class="profile-info">
          <img src="https://picsum.photos/seed/user123/200/200" alt="个人头像" class="profile-avatar">
          <div class="profile-basic">
            <h2 class="profile-name">陈小明</h2>
            <p class="profile-desc">热爱生活的摄影师，分享美好瞬间</p>
            <div class="profile-stats">
              <div class="stat-item">
                <p class="stat-value">248</p>
                <p class="stat-label">动态</p>
              </div>
              <div class="stat-item">
                <p class="stat-value">1.2k</p>
                <p class="stat-label">粉丝</p>
              </div>
              <div class="stat-item">
                <p class="stat-value">356</p>
                <p class="stat-label">关注</p>
              </div>
            </div>
          </div>
        </div>
      </div>
      
      <div class="function-grid">
        <a href="#" class="function-item" onclick="showToast('我的动态')">
          <div class="function-icon">
            <i class="fa fa-newspaper-o"></i>
          </div>
          <span class="function-name">动态</span>
        </a>
        <a href="#" class="function-item" onclick="showToast('我的收藏')">
          <div class="function-icon">
            <i class="fa fa-star-o"></i>
          </div>
          <span class="function-name">收藏</span>
        </a>
        <a href="#" class="function-item" onclick="showToast('我的相册')">
          <div class="function-icon">
            <i class="fa fa-photo"></i>
          </div>
          <span class="function-name">相册</span>
        </a>
        <a href="#" class="function-item" onclick="showToast('我的钱包')">
          <div class="function-icon">
            <i class="fa fa-money"></i>
          </div>
          <span class="function-name">钱包</span>
        </a>
        <a href="#" class="function-item" onclick="showToast('消息通知')">
          <div class="function-icon">
            <i class="fa fa-bell-o"></i>
          </div>
          <span class="function-name">消息</span>
          <span class="list-badge">12</span>
        </a>
        <a href="#" class="function-item" onclick="showToast('地址管理')">
          <div class="function-icon">
            <i class="fa fa-map-marker"></i>
          </div>
          <span class="function-name">地址</span>
        </a>
        <a href="#" class="function-item" onclick="showToast('我的礼物')">
          <div class="function-icon">
            <i class="fa fa-gift"></i>
          </div>
          <span class="function-name">礼物</span>
        </a>
        <a href="#" class="function-item" onclick="showToast('设置')">
          <div class="function-icon">
            <i class="fa fa-cog"></i>
          </div>
          <span class="function-name">设置</span>
        </a>
      </div>
      
      <div class="profile-list">
        <a href="#" class="list-item" onclick="showToast('编辑个人资料')">
          <div class="list-icon">
            <i class="fa fa-user-o"></i>
          </div>
          <div class="list-text">编辑个人资料</div>
          <div class="list-arrow">
            <i class="fa fa-angle-right"></i>
          </div>
        </a>
        <a href="#" class="list-item" onclick="showToast('账户安全')">
          <div class="list-icon">
            <i class="fa fa-shield"></i>
          </div>
          <div class="list-text">账户安全</div>
          <div class="list-arrow">
            <i class="fa fa-angle-right"></i>
          </div>
        </a>
        <a href="#" class="list-item" onclick="showToast('帮助与反馈')">
          <div class="list-icon">
            <i class="fa fa-question-circle"></i>
          </div>
          <div class="list-text">帮助与反馈</div>
          <div class="list-arrow">
            <i class="fa fa-angle-right"></i>
          </div>
        </a>
      </div>
    </div>
  </div>
  
  <!-- 样式3 - 卡片布局 -->
  <div class="profile-page" id="card">
    <div class="card-layout">
      <div class="profile-card">
        <div class="profile-header">
          <div class="header-cover"></div>
          <div class="profile-info">
            <img src="https://picsum.photos/seed/user123/200/200" alt="个人头像" class="profile-avatar">
            <div class="profile-basic">
              <h2 class="profile-name">陈小明</h2>
              <p class="profile-desc">热爱生活的摄影师，分享美好瞬间 | 旅行爱好者</p>
              <div class="profile-actions">
                <button class="btn btn-primary">编辑资料</button>
              </div>
            </div>
          </div>
        </div>
        
        <div class="function-grid">
          <a href="#" class="function-item" onclick="showToast('我的动态')">
            <div class="function-icon">
              <i class="fa fa-newspaper-o"></i>
            </div>
            <span class="function-name">动态</span>
            <span class="stat-value">248</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('粉丝')">
            <div class="function-icon">
              <i class="fa fa-users"></i>
            </div>
            <span class="function-name">粉丝</span>
            <span class="stat-value">1.2k</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('关注')">
            <div class="function-icon">
              <i class="fa fa-user-plus"></i>
            </div>
            <span class="function-name">关注</span>
            <span class="stat-value">356</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('收藏')">
            <div class="function-icon">
              <i class="fa fa-star-o"></i>
            </div>
            <span class="function-name">收藏</span>
            <span class="stat-value">42</span>
          </a>
        </div>
      </div>
      
      <div class="profile-list">
        <a href="#" class="list-item" onclick="showToast('消息中心')">
          <div class="list-icon">
            <i class="fa fa-bell-o"></i>
          </div>
          <div class="list-text">消息中心 <span class="list-badge">12</span></div>
          <div class="list-arrow">
            <i class="fa fa-angle-right"></i>
          </div>
        </a>
        <a href="#" class="list-item" onclick="showToast('我的钱包')">
          <div class="list-icon">
            <i class="fa fa-money"></i>
          </div>
          <div class="list-text">我的钱包</div>
          <div class="list-arrow">
            <i class="fa fa-angle-right"></i>
          </div>
        </a>
        <a href="#" class="list-item" onclick="showToast('地址管理')">
          <div class="list-icon">
            <i class="fa fa-map-marker"></i>
          </div>
          <div class="list-text">地址管理</div>
          <div class="list-arrow">
            <i class="fa fa-angle-right"></i>
          </div>
        </a>
        <a href="#" class="list-item" onclick="showToast('设置')">
          <div class="list-icon">
            <i class="fa fa-cog"></i>
          </div>
          <div class="list-text">设置</div>
          <div class="list-arrow">
            <i class="fa fa-angle-right"></i>
          </div>
        </a>
      </div>
      
      <div class="posts-section">
        <h3 class="section-title">我的最新动态</h3>
        <div class="post-item">
          <div class="post-content">今天去了郊外摄影，天气真好，分享几张照片～</div>
          <img src="https://picsum.photos/seed/post1/600/400" alt="动态图片" class="post-image">
          <div class="post-actions">
            <div class="post-action"><i class="fa fa-heart-o"></i> 128</div>
            <div class="post-action"><i class="fa fa-comment-o"></i> 32</div>
            <div class="post-action"><i class="fa fa-share-alt"></i> 分享</div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
  <!-- 样式4 - 标签式布局 -->
  <div class="profile-page" id="tab">
    <div class="tab-layout">
      <div class="profile-tabs">
        <div class="profile-tab active" data-tab="profile">个人资料</div>
        <div class="profile-tab" data-tab="posts">我的动态</div>
        <div class="profile-tab" data-tab="settings">设置</div>
      </div>
      
      <!-- 个人资料标签页 -->
      <div class="tab-content active" data-tab="profile">
        <div class="profile-header">
          <div class="header-cover"></div>
          <div class="profile-info">
            <img src="https://picsum.photos/seed/user123/200/200" alt="个人头像" class="profile-avatar">
            <div class="profile-basic">
              <h2 class="profile-name">陈小明</h2>
              <p class="profile-desc">热爱生活的摄影师，分享美好瞬间 | 旅行爱好者</p>
              <div class="profile-stats">
                <div class="stat-item">
                  <p class="stat-value">248</p>
                  <p class="stat-label">动态</p>
                </div>
                <div class="stat-item">
                  <p class="stat-value">1.2k</p>
                  <p class="stat-label">粉丝</p>
                </div>
                <div class="stat-item">
                  <p class="stat-value">356</p>
                  <p class="stat-label">关注</p>
                </div>
              </div>
              <button class="btn btn-primary" onclick="showToast('编辑资料')">
                <i class="fa fa-edit mr-1"></i> 编辑资料
              </button>
            </div>
          </div>
        </div>
        
        <div class="function-grid">
          <a href="#" class="function-item" onclick="showToast('我的收藏')">
            <div class="function-icon">
              <i class="fa fa-star-o"></i>
            </div>
            <span class="function-name">我的收藏</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('我的相册')">
            <div class="function-icon">
              <i class="fa fa-photo"></i>
            </div>
            <span class="function-name">我的相册</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('我的钱包')">
            <div class="function-icon">
              <i class="fa fa-money"></i>
            </div>
            <span class="function-name">我的钱包</span>
          </a>
          <a href="#" class="function-item" onclick="showToast('消息通知')">
            <div class="function-icon">
              <i class="fa fa-bell-o"></i>
            </div>
            <span class="function-name">消息通知</span>
          </a>
        </div>
      </div>
      
      <!-- 我的动态标签页 -->
      <div class="tab-content" data-tab="posts">
        <div class="posts-section">
          <h3 class="section-title">我的动态 (248)</h3>
          
          <div class="post-item">
            <div class="post-content">今天去了郊外摄影，天气真好，分享几张照片～</div>
            <img src="https://picsum.photos/seed/post1/600/400" alt="动态图片" class="post-image">
            <div class="post-actions">
              <div class="post-action"><i class="fa fa-heart-o"></i> 128</div>
              <div class="post-action"><i class="fa fa-comment-o"></i> 32</div>
              <div class="post-action"><i class="fa fa-share-alt"></i> 分享</div>
            </div>
          </div>
          
          <div class="post-item">
            <div class="post-content">新买的相机到了，迫不及待想出去拍照了！#摄影器材 #新装备</div>
            <img src="https://picsum.photos/seed/post2/600/400" alt="动态图片" class="post-image">
            <div class="post-actions">
              <div class="post-action"><i class="fa fa-heart-o"></i> 89</div>
              <div class="post-action"><i class="fa fa-comment-o"></i> 15</div>
              <div class="post-action"><i class="fa fa-share-alt"></i> 分享</div>
            </div>
          </div>
          
          <div class="post-item">
            <div class="post-content">整理了一下去年的旅行照片，满满的回忆～</div>
            <div class="post-actions">
              <div class="post-action"><i class="fa fa-heart-o"></i> 64</div>
              <div class="post-action"><i class="fa fa-comment-o"></i> 8</div>
              <div class="post-action"><i class="fa fa-share-alt"></i> 分享</div>
            </div>
          </div>
        </div>
      </div>
      
      <!-- 设置标签页 -->
      <div class="tab-content" data-tab="settings">
        <div class="profile-list">
          <a href="#" class="list-item" onclick="showToast('账户安全')">
            <div class="list-icon">
              <i class="fa fa-shield"></i>
            </div>
            <div class="list-text">账户安全</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('隐私设置')">
            <div class="list-icon">
              <i class="fa fa-lock"></i>
            </div>
            <div class="list-text">隐私设置</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('通知设置')">
            <div class="list-icon">
              <i class="fa fa-bell-o"></i>
            </div>
            <div class="list-text">通知设置</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('地址管理')">
            <div class="list-icon">
              <i class="fa fa-map-marker"></i>
            </div>
            <div class="list-text">地址管理</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('帮助中心')">
            <div class="list-icon">
              <i class="fa fa-question-circle"></i>
            </div>
            <div class="list-text">帮助中心</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" onclick="showToast('关于我们')">
            <div class="list-icon">
              <i class="fa fa-info-circle"></i>
            </div>
            <div class="list-text">关于我们</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
          <a href="#" class="list-item" style="color: #f44336;" onclick="if(confirm('确定要退出登录吗？')) showToast('已退出登录')">
            <div class="list-icon">
              <i class="fa fa-sign-out"></i>
            </div>
            <div class="list-text">退出登录</div>
            <div class="list-arrow">
              <i class="fa fa-angle-right"></i>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleTabs = document.querySelectorAll('.style-tab');
    const profilePages = document.querySelectorAll('.profile-page');
    const backBtn = document.getElementById('backBtn');
    const settingsBtn = document.getElementById('settingsBtn');
    const toast = document.getElementById('toast');
    const profileTabs = document.querySelectorAll('.profile-tab');
    const tabContents = document.querySelectorAll('.tab-content');
    
    // 样式切换
    styleTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        styleTabs.forEach(t => t.classList.remove('active'));
        profilePages.forEach(page => page.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.getElementById(style).classList.add('active');
        
        showToast(`已切换到${this.textContent}`);
      });
    });
    
    // 标签式布局切换
    profileTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        const tabName = this.getAttribute('data-tab');
        
        // 更新标签
        profileTabs.forEach(t => t.classList.remove('active'));
        this.classList.add('active');
        
        // 更新内容
        tabContents.forEach(content => {
          content.classList.remove('active');
        });
        document.querySelector(`.tab-content[data-tab="${tabName}"]`).classList.add('active');
      });
    });
    
    // 返回按钮
    backBtn.addEventListener('click', function() {
      showToast('返回上一页');
    });
    
    // 设置按钮
    settingsBtn.addEventListener('click', function() {
      // 如果当前是标签式布局，切换到设置标签
      if (document.getElementById('tab').classList.contains('active')) {
        profileTabs.forEach(t => t.classList.remove('active'));
        tabContents.forEach(content => content.classList.remove('active'));
        
        document.querySelector('.profile-tab[data-tab="settings"]').classList.add('active');
        document.querySelector('.tab-content[data-tab="settings"]').classList.add('active');
      } else {
        showToast('打开设置页面');
      }
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.opacity = '0';
        setTimeout(() => {
          toast.style.display = 'none';
          toast.style.opacity = '1';
        }, 300);
      }, 2000);
    }
  </script>
</body>
</html>
